<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

// 首页
Route::get('/', 'IndexController@index');
// 登录
Route::get('/login', 'UserController@login');
Route::post('/login', 'UserController@login');
Route::get('/logout', 'UserController@logout');


// 课程详情
Route::get('/lesson/view','LessonController@view');
// 案例详情
Route::get('/case/detail','CaseController@detail');
// 新闻详情
Route::get('/realnews/detail','RealNewsController@detail');

// 留言板
Route::group(['prefix' =>'ajax'],function(){
    Route::post('/msg/send','MsgsController@save');
});

// 私人订制服务-月嫂
Route::get('/service',function(){
    return view('service.index');
});

// 职业培训学校-学校概况
Route::get('/school/index',function(){
    return view('school.school');
});
// 职业培训学校-母婴护理师
Route::get('/school/hulishi',function(){
    return view('school.hulishi');
});
// 职业培训学校-催乳师
Route::get('/school/cuirushi',function(){
    return view('school.cuirushi');
});
// 职业培训学校-小儿推拿
Route::get('/school/tuina',function(){
    return view('school.tuina');
});
// 职业培训学校-产后修复
Route::get('/school/xiufu',function(){
    return view('school.xiufu');
});
// 职业培训学校-育婴
Route::get('/school/yuying',function(){
    return view('school.yuyingshi');
});
// 职业培训学校-产后发汗
Route::get('/school/fahan',function(){
    return view('school.fahan');
});
// 职业培训学校-营养师
Route::get('/school/yingyang',function(){
    return view('school.yingyang');
});

// 父母学院-小儿推拿家长精品培训班
Route::get('/parent/peixunban','NewsController@peixunban');
// 父母学院-喂养指导课堂
Route::get('/parent/ketang','NewsController@ketang');
// 父母学院-家庭早教指导课程
Route::get('/parent/zaojiao','NewsController@zaojiao');
// 父母学院-生养教前沿资讯
Route::get('/parent/zixun','NewsController@zixun');

// 新闻详情页
Route::get('/news/detail','NewsController@detail');


// 招聘合作-月嫂
Route::get('/employ',function(){
    return view('employ.index');
});

// 关于我们-公司简介
Route::get('/about',function(){
    return view('about.index');
});
// 关于我们-公司简介
Route::get('/about/linian',function(){
    return view('about.linian');
});
// 关于我们-公司简介
Route::get('/about/mobileus',function(){
    return view('about.mobileus');
});

/*
 |--------------------------------------------------------------------------
 | 后台管理组
 |--------------------------------------------------------------------------
 */
// 课程管理
Route::controller('/admin/lesson','admin\LessonsController');

// 父母学院（老的新闻管理）
Route::controller('/admin/news','admin\NewsController');

// 案例管理
Route::controller('/admin/cases','admin\CaseController');

// 留言管理
Route::controller('/admin/msg','admin\MsgsController');

// 新闻管理
Route::controller('/admin/realnews','admin\RealNewsController');

// 服务风采
Route::controller('/admin/serve','admin\ServeController');